﻿using Microsoft.Owin.Hosting;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleOwin
{
    class Program
    {
        static void Main(string[] args)
        {
            const string baseUrl = "http://localhost:5000/";
            using (WebApp.Start<BootStartup>(baseUrl))
            {
                Console.WriteLine("service run at localhost on port:5000");
                try
                {
                    Process.Start("http://localhost:5000/");
                }
                finally
                {
                    Console.ReadLine();
                }
            }
        }
    }
}